package com.lf.web.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;
import org.springframework.context.support.PropertySourcesPlaceholderConfigurer;

/**
 * Created by LF on 2017/5/3.
 */
@Configuration
@PropertySource("classpath:application.properties")
public class Config {
//    @Autowired
//    private Environment environment;
//
//    @Bean
//    public String getTitle() {
//        return environment.getProperty("title") + environment.getProperty("context");
//    }

    @Bean
    public PropertySourcesPlaceholderConfigurer get() {
        return new PropertySourcesPlaceholderConfigurer();
    }

}
